package com.baigao.springboot.controller;
 
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
@Controller
public class IndexController {

    private final static Logger LOG = LoggerFactory.getLogger(IndexController.class);

    @GetMapping({"", "/", "index", "/home"})
    public String index() {
        LOG.info("This is the First Page.");
        return "index";
    }
    @GetMapping({"/index2"})
    public String uploadFileIndex() {
    	LOG.info("This is the First Page.");
    	return "fileUpload2";
    }
    @GetMapping({"/index3"})
    public String uploadFilesIndex() {
    	LOG.info("This is the fileUploads Page.");
    	return "fileUploads";
    }
    @GetMapping({"/index4"})
    public String uploadfilesHtml() {
    	LOG.info("This is the fileUploads Page.");
    	return "uploadfiles";
    }
    @GetMapping({"/index5"})
    public String uploadfilesHtml5() {
    	LOG.info("This is the fileUploads Page.");
    	return "uploadfiles2";
    }
    @GetMapping({"/index6"})
    public String uploadfilesHtml6() {
    	LOG.info("This is the fileUploads Page.");
    	return "uploadfiles3";
    }
    @GetMapping({"/index7"})
    public String uploadfilesHtml7() {
    	LOG.info("This is the fileUploads Page.");
    	return "uploadfiles_example";
    }
}
